const http = require('http')

const app = http.createServer((req,res)=>{
    if(req.url ==='/api/hello') {
        res.end('hello api')
    }
})

app.listen(9000,'localhost',()=>{
    console.log('server is run in localhost:9000')
})